﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="TaoBaoApi_TB_Config" Codebehind="TB_Config.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>淘宝参数配置</title>
</head>
<body>
    <form id="form1" runat="server">
    <div align="justify">
        <h2>配置淘宝API</h2>
       <div class="menu_bg">
            基于淘宝API的调用次数限制，如果您在使用淘宝接口相关部分时，经常出现“下载淘宝数据失败”的提示，可以尝试选择不同的淘宝ApiCode，非常感谢您的理解与配合。

       </div> 
       <div class="juli">
           <asp:GridView ID="gvList" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" OnPageIndexChanging="gvList_PageIndexChanging" OnRowCreated="gvList_RowCreated">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate><asp:CheckBox ID="chkOne" runat="server" /></ItemTemplate> 
                    </asp:TemplateField>
                   <asp:BoundField DataField="mid" HeaderText="编号" />
                   <asp:BoundField DataField="appkey" HeaderText="AppKey" />
                   <asp:BoundField DataField="appcertcode" HeaderText="AppCertCode" />
                   <asp:TemplateField>
                        <HeaderTemplate>状态</HeaderTemplate>
                        <ItemTemplate><%# GetAppCodeStatus( Eval("isuse")) %></ItemTemplate> 
                   </asp:TemplateField>    
                </Columns>
               <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
               <RowStyle BackColor="#E3EAEB" />
               <EditRowStyle BackColor="#7C6F57" />
               <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
               <PagerStyle  HorizontalAlign="Left" />
               <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
               <AlternatingRowStyle BackColor="White" />
           </asp:GridView>
       </div> 
       <div class="juli">
            <asp:Button ID="btnSave" runat="server" Text="启用此AppCode" OnClick="btnSave_Click" />
       </div>
       <div class="left">
           
           <table>
                <tr>
                    <td>AppKey:</td>
                    <td > <asp:TextBox ID="txtAppKey" runat="Server" Width="300px" /></td> 
                </tr>
                <tr>
                    <td>AppCertCode:</td>
                    <td><asp:TextBox ID="txtAppCertCode" runat="server" Width="400px" /></td> 
                </tr>
                <tr>
                    <td></td>
                    <td ><asp:Button ID="btnAdd" runat="Server" Text="添加AppCode" OnClick="btnAdd_Click" /></td> 
                </tr>
           </table> 
       </div>
    </div>
    </form>
</body>
</html>
